<div class="promotions view">
<h2><?php  __('Promotion');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Code'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['code']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Promotiontype'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($promotion['Promotiontype']['name'], array('controller' => 'promotiontypes', 'action' => 'view', $promotion['Promotiontype']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Expdate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['expdate']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Status'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['status']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Value'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['value']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Datelastmaint'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['datelastmaint']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Euser Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $promotion['Promotion']['euser_id']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Promotion', true), array('action' => 'edit', $promotion['Promotion']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Promotion', true), array('action' => 'delete', $promotion['Promotion']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $promotion['Promotion']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Promotions', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promotion', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Promotiontypes', true), array('controller' => 'promotiontypes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promotiontype', true), array('controller' => 'promotiontypes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Receipts', true), array('controller' => 'receipts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Receipt', true), array('controller' => 'receipts', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Receipts');?></h3>
	<?php if (!empty($promotion['Receipt'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Trainee Id'); ?></th>
		<th><?php __('Payment Id'); ?></th>
		<th><?php __('Datecreated'); ?></th>
		<th><?php __('Debitacct'); ?></th>
		<th><?php __('Transaction Id'); ?></th>
		<th><?php __('Amount'); ?></th>
		<th><?php __('Promotion Id'); ?></th>
		<th><?php __('Trans Amount'); ?></th>
		<th><?php __('Descriptionvn'); ?></th>
		<th><?php __('Description'); ?></th>
		<th><?php __('Eempid'); ?></th>
		<th><?php __('Paymentstat'); ?></th>
		<th><?php __('Currency'); ?></th>
		<th><?php __('Mark'); ?></th>
		<th><?php __('Subject Id'); ?></th>
		<th><?php __('Testslot Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($promotion['Receipt'] as $receipt):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $receipt['id'];?></td>
			<td><?php echo $receipt['trainee_id'];?></td>
			<td><?php echo $receipt['payment_id'];?></td>
			<td><?php echo $receipt['datecreated'];?></td>
			<td><?php echo $receipt['debitacct'];?></td>
			<td><?php echo $receipt['transaction_id'];?></td>
			<td><?php echo $receipt['amount'];?></td>
			<td><?php echo $receipt['promotion_id'];?></td>
			<td><?php echo $receipt['trans_amount'];?></td>
			<td><?php echo $receipt['descriptionvn'];?></td>
			<td><?php echo $receipt['description'];?></td>
			<td><?php echo $receipt['eempid'];?></td>
			<td><?php echo $receipt['paymentstat'];?></td>
			<td><?php echo $receipt['currency'];?></td>
			<td><?php echo $receipt['mark'];?></td>
			<td><?php echo $receipt['subject_id'];?></td>
			<td><?php echo $receipt['testslot_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'receipts', 'action' => 'view', $receipt['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'receipts', 'action' => 'edit', $receipt['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'receipts', 'action' => 'delete', $receipt['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $receipt['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Receipt', true), array('controller' => 'receipts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
